<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>

  <script src="./lib/vue.js"></script>
</body>

</html>
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="./lib/vue.js"></script>
  <style>
    html{
      font-size: 100px;
    }
  </style>
</head>

<body>
  <div id="app">
    <h3 :style="styleobj">我是一个标题</h3>
    <h3 :style="styleArr">我是一个标题</h3>
  </div>

  <script>
    let vm = new Vue({
      el: '#app',
      data: {
        styleobj: { color: 'red' },
        styleArr: [
          { color: 'red' },
          { fontSize: '.3rem' }
        ]
      }
    })
  </script>
</body>

</html>